package com.z.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 博客标签实体
 *
 * @author z
 * @date 2022-08-29
 */
@Data
@TableName("t_tag")
public class Tag implements Serializable {

    /** 标签id */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 标签名称 */
    private String name;

    /** 多选下拉是否选中 */
    @TableField(exist = false)
    private boolean selected = false;

}
